package com.bcbim.common.sys;

/**
 * @Description: 系统常量
 * @Author haoshuai
 * @Date 2020/8/27
 * @Version V1.0
 **/
public class Constant {
    public static final String CLASS_STRING = "class java.lang.String";

    // 码值类型, 码值映射对象后缀
    public static final String TYPE_SUFFIX = "TYPE";
    public static final String MAP_SUFFIX = "MAP";

    // 框架 id 长度
    public static final int ID_LENGTH = 32;
    // 框架码值长度 1, 2, 3
    public static final int CODE_LENGTH_ONE = 1;
    public static final int CODE_LENGTH_TWO = 2;
    public static final int CODE_LENGTH_THREE = 3;
    //重置密码
    public static final String RESET_PASSWORD = "123456";
    // 删除标记字段对应值
    public static final String NOT_DEL = "0";
    public static final String DEL = "1";

    public static final String UNASSIGNED = "未指派";//未指派名称
    // 启用标记字段对应值
    public static final String ENABLE = "1";
    public static final String DISABLE = "0";

    // 鉴权失败提示信息
    public static final String UNAUTHORIZED_MSG = "未取得用户权限，请重新登录。";
    public static final String APP_UNAUTHORIZED_MSG = "权限校验失败";

    // 登录方法名称
    public static final String USERLOGIN_METHOD_NAME = "userLogin";
    public static final String RESOURCES_PATH = "/resources/modelFile/";

    // 权限过期时间
    public static final long PERMISSION_EXPIRATION_TIME = 7200;

    //js请求校验参数
    public static final String KEY_PARAM = "appKey";

    // 保存 修改操作提示信息
    public static final String SAVE_SUCCESS = "保存成功。";
    public static final String SAVE_FAIL = "保存失败！";

    // 保存 修改操作提示信息
    public static final String DEL_SUCCESS = "删除成功。";
    public static final String DEL_FAIL = "删除失败！";

    //revit文件版本判断
    public static final String REVIT_VERSION = "((?<=Autodesk Revit )20\\d{2})|((?<=Format: )20\\d{2})";
    //    public static final String REVIT2018 = "D:\\Project\\revit_console\\revit_console\\obj\\Debug\\revit_console.exe";
    public static final String REVIT2018 = "D:\\appserver\\bim_model_server_test\\revit_console\\2018\\revit_console.exe";
    public static final String REVIT2019 = "D:\\appserver\\bim_model_server_test\\revit_console\\2019\\revit_console_2019.exe";
    public static final String REVIT2020 = "D:\\appserver\\bim_model_server_test\\revit_console\\2020\\revit_console_2020.exe";
    public static final String REVIT2021 = "D:\\appserver\\bim_model_server_test\\revit_console\\2021\\revit_console_2021.exe";

    //颜色类型
    public static final String COLOUR_CATEGORY = "1";//类别
    public static final String COLOUR_TYPE = "2";//类型
    public static final String COLOUR_BUSINESS = "3";//业务部
    public static final String COLOUR_DEPARTMENT = "4";//部门
    public static final String COLOUR_OCCUPATION = "5";//可占用

    //x显示
    public static final String SPACE_COUNT = "2";//空间数
    public static final String SPACE_AREA = "1";//面积

    public static final String LEVEL_FIRST = "1";//面积
    public static final String LEVEL_SECOND = "2";//空间数
    //不可占用
    public static final String NOT_OCCUPY = "1";
    //勾选
    public static final String CHECK = "1";

    //管道类型
    public static final String PIPELINE_POINT = "1";
    public static final String PIPELINE_LINE = "2";
    public static final String PIPELINE_ALL = "3";//全部的管点管线(前端需要)

    // 管网信息管径分类统计区间数据
    public static final Integer PIPE_DIAMETER_TYPE_1 = 100;//管径分类：100
    public static final Integer PIPE_DIAMETER_TYPE_5 = 500;//管径分类：500
    public static final Integer PIPE_DIAMETER_TYPE_9 = 900;// 管径分类：900
    public static final Integer PIPE_DIAMETER_TYPE_13 = 1300;//管径分类：1300
    public static final Integer PIPE_DIAMETER_TYPE_17 = 1700;//管径分类：1700
    public static final Integer PIPE_DIAMETER_TYPE_21 = 2100;//管径分类：2100

    // 管网信息管点埋深分类统计区间数据
    public static final Integer PIPE_BURY_TYPE_0 = 0;//井底埋深0
    public static final Integer PIPE_BURY_TYPE_1 = 1;//井底埋深1
    public static final Integer PIPE_BURY_TYPE_2 = 2;//井底埋深2
    public static final Integer PIPE_BURY_TYPE_3 = 3;//井底埋深3
    public static final Integer PIPE_BURY_TYPE_4 = 4;//井底埋深4
    public static final Integer PIPE_BURY_TYPE_5 = 5;//井底埋深5
    public static final Integer PIPE_BURY_TYPE_6 = 6;//井底埋深6
    public static final Integer PIPE_BURY_TYPE_7 = 7;//井底埋深7
    public static final Integer PIPE_BURY_TYPE_8 = 8;//井底埋深8
    public static final Integer PIPE_BURY_TYPE_9 = 9;//井底埋深9

    // 管网信息管点地面高程分类统计区间数据
    public static final Integer PIPE_HIGH_TYPE_0 = 0;//地面高程分类0
    public static final Integer PIPE_HIGH_TYPE_1 = -1;//地面高程分类1
    public static final Integer PIPE_HIGH_TYPE_2 = -2;//地面高程分类2
    public static final Integer PIPE_HIGH_TYPE_3 = -3;//地面高程分类3
    public static final Integer PIPE_HIGH_TYPE_4 = -4;//地面高程分类4
    public static final Integer PIPE_HIGH_TYPE_5 = -5;//地面高程分类5

    //管网图纸文件上传路径
    public static final String PIPE_DRAWING_URL = "pipeDrawing";
    //功能性缺陷
    public static final String FUNCTIONAL_DEFECT = "1";
    //结构性缺陷
    public static final String STRUCTURAL_DEFECT = "2";
    //健康监测
    public static final String HEALTH_IMG_URL = "healthImg";
    public static final String HEALTH_DOC_URL = "healthDoc";
    public static final String BUILD_PHOTO_URL = "buildPhoto";//建筑效果图路径
}
